<?php

include_once 'ArrayToXML.php';

$val=array(
    "Name"=>"dr",
    "Sex"=>"男",
    "Nation"=>"汉族",
    "Birthday"=>"1991-12-14",
    "IDcard"=>"532301199112141318",
);
$xml = new ArrayToXML();
$xmldata =  $xml-> toXml($val);
echo $xmldata;
